package com.diandi.ddsb.service;

import com.diandi.ddsb.vo.RoleMangerVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import static com.diandi.Constant.APPLICATION_NAME;

/**
 * 角色管理
 */
@FeignClient(APPLICATION_NAME)
@RequestMapping("roleService")
public interface RoleService {

    /**
     * 根据id查询
     */
    @RequestMapping("findById")
    RoleMangerVo findById(long id);


    /**
     * @return
     */
    @RequestMapping("getAdminRole")
    RoleMangerVo getAdminRole();
}
